const ALY = require('aliyun-sdk')

const { ACCESS_KEY_ID, SECRET_ACCESS_KEY } = process.env

const cdn = new ALY.CDN({
    accessKeyId: ACCESS_KEY_ID,
    secretAccessKey: SECRET_ACCESS_KEY,
    endpoint: 'https://cdn.aliyuncs.com',
    apiVersion: '2014-11-11',
  }
)

module.exports = cdn